package com.czl.myRabbitMq.mqServer.mapper;

import com.czl.myRabbitMq.mqServer.core.Binding;
import com.czl.myRabbitMq.mqServer.core.Exchange;
import com.czl.myRabbitMq.mqServer.core.MSGQueue;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExchangeMapper {
    void createExchange();
    void createQueue();
    void createBinding();



    void insertExchange(Exchange exchange);
    void deleteExchange(String name);//这三种数据结果主键均设置的name

    List<Exchange> selectAllExchange();
    void insertQueue(MSGQueue queue);
    void deleteQueue(String name);
    List<MSGQueue> selectAllQueue();
    void insertBinding(Binding binding);
    void deleteBinding(String exchangeName,String QueueNAme);
    List<Binding> selectAllBinding();
}
